﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Home.ascx.cs" Inherits="KTX_Home" %>
<div class="col-md-3">
<asp:PlaceHolder ID="PlaceHolderLeft" runat="server"></asp:PlaceHolder>
    </div>
<div class="col-xs-6 col-md-9">
    <asp:PlaceHolder ID="PlaceHolderSlideShow" runat="server"></asp:PlaceHolder>

    <div class="page-header">
        <h1>Tin tức - Hoạt động<small>
                 Ký túc xá Đại học Đà Lạt
        </small></h1>
    </div>
    <div class="row">
        <div class="col-md-7">
            <div class="panel panel-default">
                <div class="panel-body">
                    <asp:Repeater ID="Repeater1" runat="server">
                        <ItemTemplate>
                            <img src="<%#Eval("AnhDaiDien") %>" class="img-responsive" />
                            <h3><a href="Default.aspx?tab=cttintuc&IDTinTuc=<%#Eval("IDTinTuc") %>"><%#Eval("TieuDe") %></a></h3>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>
            </div>

        </div>
        <div class="col-md-5">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <div class="panel-title">TIN NỔI BẬT</div>
                </div>
                <div class="panel-body">
                    <asp:Repeater ID="rptNewsItems" runat="server">
                        <ItemTemplate>
                            <div class="media">
                                <a class="pull-left" href="#">
                                    <img class="media-object" src="<%#Eval("AnhDaiDien") %>" alt="..." width="48">
                                </a>
                                <div class="media-body">
                                    <h4 class="media-heading"><a href="Default.aspx?tab=cttintuc&IDTinTuc=<%#Eval("IDTinTuc") %>" rel="tooltip" title="<%#Eval("TieuDe") %>"><%#Eval("TieuDe") %> </a>
                                    </h4>


                                </div>
                            </div>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>
            </div>
        </div>
    </div>


    <div class="page-header">
        <h1>Thông báo<small>
                 Ký túc xá Đại học Đà Lạt
        </small></h1>
    </div>
    <asp:Repeater ID="rptItems" runat="server">
        <ItemTemplate>
            <div class="media thumbnail">
                <a class="pull-left" href="#">
                    <img class="media-object" src="/Images/kblogger.png" alt="..." width="96">
                </a>
                <div class="media-body">
                    <h4 class="media-heading"><a href="Default.aspx?tab=ctthongbao&IDThongBao=<%#Eval("IDThongBao") %>" rel="tooltip" title="<%#Eval("TieuDe") %>"><%#Eval("TieuDe") %> </a><span class="pull-right"><%#(Eval("GhimThongBao").ToBool()==true) ?"<img src='/images/note2.png' width='24' />":"" %></span></h4>
                    <small>bởi <b><%#Eval("NguoiThongBao") %></b>
                        <i class="fa fa-calendar"></i>

                        <time class="timeago" datetime="<%#Eval("NgayThongBao") %>" rel="tooltip" title="<%#Eval("NgayThongBao") %>"><%#Eval("NgayThongBao") %></time>
                        |   <i class="fa fa-eye"></i>(<%#Eval("LuotXem") %>) người đã xem
                    </small>
                    <br />
                    <%#Eval("MoTa") %>
                    <span class="pull-right">
                        <a href="Default.aspx?tab=ctthongbao&IDThongBao=<%#Eval("IDThongBao") %>">Xem chi tiết</a>
                    </span>
                </div>
            </div>
        </ItemTemplate>
    </asp:Repeater>

</div>
<div class="col-md-12 hidden-xs hidden-sm">
</div>
<div class="col-md-4 hidden-xs hidden-sm">

    <div class="panel panel-primary">
        <div class="panel-heading">
            <h3 class="panel-title">Dịch vụ</h3>
        </div>
        <div class="panel-body">
            <div class="list-group">
                <a href="#" class="list-group-item">Internet - Wifi
                </a>
                <a href="#" class="list-group-item">In tài liệu</a>
                <a href="#" class="list-group-item">Dịch vụ khác</a>
                <a href="#" class="list-group-item">Dịch vụ khác</a>
                <a href="#" class="list-group-item">Dịch vụ khác</a>
            </div>

        </div>
    </div>
</div>
<div class="col-md-4 hidden-xs hidden-sm">

    <div class="panel panel-primary">
        <div class="panel-heading">
            <h3 class="panel-title">Y tế - Sức khỏe</h3>
        </div>
        <div class="panel-body">
            <img src="/images/suckhoe.jpg" width="225" />
        </div>
    </div>
</div>
<div class="col-md-4 hidden-xs hidden-sm">

    <div class="panel panel-primary">
        <div class="panel-heading">
            <h3 class="panel-title">Câu lạc bộ</h3>
        </div>
        <div class="panel-body">
            <div class="list-group">
                <a href="#" class="list-group-item">CLB Tiếng Anh</a>
                <a href="#" class="list-group-item">CLB Tiếng Hàn</a>
                <a href="#" class="list-group-item">CLB Thể thao</a>
                <a href="#" class="list-group-item">CLB Văn nghệ</a>
                <a href="#" class="list-group-item">CLB khác</a>
            </div>
        </div>
    </div>
</div>


<script type="text/javascript">
    $(document).ready(function () {
        $("#m-home").addClass("active");
    });
</script>
